

/*
This is a UI file (.ui.qml) that is intended to be edited in Qt Design Studio only.
It is supposed to be strictly declarative and only uses a subset of QML. If you edit
this file manually, you might introduce QML code that is not supported by Qt Design Studio.
Check out https://doc.qt.io/qtcreator/creator-quick-ui-forms.html for details on .ui.qml files.
*/
import QtQuick 6.5
import QtQuick.Controls 6.5
import QtQuick3D 6.5
import QtQuick3D.Helpers

import QMLTemplate

Rectangle {
    color: Constants.backgroundColor

    View3D {
        id: view3D
        anchors.fill: parent

        environment: sceneEnvironment

        SceneEnvironment {
            id: sceneEnvironment
            backgroundMode: SceneEnvironment.SkyBox
            lightProbe: Texture {
                textureData: ProceduralSkyTextureData {}
            }
        }

        importScene: scene
    }

    Node {
        id: scene

        Model {
            id: cube
            x: 0
            y: 0
            source: "#Cube"
            eulerRotation.z: 26.76721
            eulerRotation.y: 22.62504
            eulerRotation.x: -3.92377
            z: 0
            materials: defaultMaterial
        }

        PerspectiveCamera {
            id: cameraPerspective
            x: -240.115
            y: 0
            z: -0.00014

            eulerRotation.z: -0.00002
            eulerRotation.y: -90
            eulerRotation.x: -0.00002
        }
    }

    Item {
        id: __materialLibrary__
        DefaultMaterial {
            id: defaultMaterial
            objectName: "Default Material"
            diffuseColor: "#4aee45"
        }
    }
}
